﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Microwave: Microwave.h Source File</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                Microwave: Microwave.h Source File
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">Microwave.h</div>  </div>
</div>
<div class="contents">
<a href="_microwave_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __WASHING_MACHINE__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __WASHING_MACHINE__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;cstdlib&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="keyword">using namespace </span>std;
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="keyword">class </span>MicrowaveContext;
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 
<a name="l00013"></a><a class="code" href="class_microwave.html">00013</a> <span class="keyword">class </span><a class="code" href="class_microwave.html">Microwave</a>
<a name="l00014"></a>00014 {
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">public</span>:
<a name="l00017"></a>00017         <a class="code" href="class_microwave.html">Microwave</a>();
<a name="l00018"></a>00018 
<a name="l00019"></a>00019         ~<a class="code" href="class_microwave.html">Microwave</a>();
<a name="l00020"></a>00020 
<a name="l00021"></a>00021         <span class="keywordtype">void</span> Process();
<a name="l00022"></a>00022 
<a name="l00023"></a><a class="code" href="class_microwave.html#a91a8dac07ba5c0c5a93d978c3ad0429e">00023</a>         <span class="keywordtype">int</span> <a class="code" href="class_microwave.html#a91a8dac07ba5c0c5a93d978c3ad0429e">GetRtxCounter</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> iRtxCount;}
<a name="l00024"></a>00024 
<a name="l00025"></a>00025         <span class="keywordtype">void</span> evStart();
<a name="l00026"></a>00026         <span class="keywordtype">void</span> evStop();
<a name="l00027"></a>00027         <span class="keywordtype">void</span> evTurnOn();
<a name="l00028"></a>00028         <span class="keywordtype">void</span> evTurnOff();
<a name="l00029"></a>00029         <span class="keywordtype">void</span> evCookingDone();
<a name="l00030"></a>00030         <span class="keywordtype">void</span> evDoorOpened();
<a name="l00031"></a>00031         <span class="keywordtype">void</span> evDoorClosed();
<a name="l00032"></a>00032 
<a name="l00033"></a>00033         <span class="keywordtype">void</span> Print(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; message);
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 <span class="keyword">private</span>:
<a name="l00036"></a>00036         <span class="comment">//FRIEND_CLASS_FSM</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038         MicrowaveContext&amp; GetContext();
<a name="l00039"></a><a class="code" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">00039</a>         MicrowaveContext *<a class="code" href="class_microwave.html#ade8a3fc751fde19161408844833bda23">m_pContext</a>;
<a name="l00040"></a><a class="code" href="class_microwave.html#ab9f207cb699db8ef6fcc2f8e808be829">00040</a>         <span class="keywordtype">int</span> <a class="code" href="class_microwave.html#ab9f207cb699db8ef6fcc2f8e808be829">iRtxCount</a>;
<a name="l00041"></a><a class="code" href="class_microwave.html#a7ed1c6ec309df83004ec4ff33fa5b6db">00041</a>         <span class="keywordtype">int</span> <a class="code" href="class_microwave.html#a7ed1c6ec309df83004ec4ff33fa5b6db">iCounter</a>;
<a name="l00042"></a>00042 };
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
